import 'dart:ffi';

import 'package:flutter/material.dart';

class BadgeWidget extends StatelessWidget {

  final double width;
  final double height;
  final Widget widget;
  final Widget badget;

  const BadgeWidget({Key? key,
    required this.width,
    required this.height,
    required this.widget,
    required this.badget}) : super(key: key);
  // final VoidCallback? onWidgetPressed;
  // final VoidCallback? onBadgetPressed;

  @override
  Widget build(BuildContext context) {
    return Container(width: width, height: height, child: Stack(children: [
      Positioned(child: widget, left: 0, bottom: 0,),
      Positioned(child: badget, top: 0, right: 0,)
    ],
    ));
  }
}